import request from '@/utils/request'

// 查询病历表列表
export function listMedical(query) {
  return request({
    url: '/medical/Medical/list',
    method: 'get',
    params: query
  })
}

// 查询病历表详细
export function getMedical(id) {
  return request({
    url: '/medical/Medical/' + id,
    method: 'get'
  })
}

// 新增病历表
export function addMedical(data) {
  return request({
    url: '/medical/Medical',
    method: 'post',
    data: data
  })
}

// 修改病历表
export function updateMedical(data) {
  return request({
    url: '/medical/Medical',
    method: 'put',
    data: data
  })
}

// 删除病历表
export function delMedical(id) {
  return request({
    url: '/medical/Medical/' + id,
    method: 'delete'
  })
}

// 导出病历表
export function exportMedical(query) {
  return request({
    url: '/medical/Medical/export',
    method: 'get',
    params: query
  })
}